package com.tuananh.radnom.persist;

import java.util.ArrayList;

import com.tuananh.radnom.model.netpoller.PollScheduleInfo;
import com.tuananh.radnom.model.netpoller.PollPackage;
import com.tuananh.radnom.model.netservice.NetService;


public interface IPollingServiceDAO {
	// Package level
	public PollPackage getByName(String packageName);
	public ArrayList<PollPackage> getAllPackage();
	public boolean addPollPackage(PollPackage pollPack);
	public boolean removePollPackage(String packageName);
	public boolean updatePollPackage(PollPackage pollPack);
	// Detail level
	public boolean addService(String packageName,NetService netService);
	public boolean removeService(String packageName,String serviceName);// Note: if packageName ==null remove all package
	public boolean updateService(String packageName,NetService netService);
	public NetService getService(String packageName,String serviceName);
	
	public boolean addNetInt(String packageName,String netIntName);
	public boolean removeNetInt(String packageName,String netIntName);
	
}
